package com.dys.vo;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @className: com.dys.vo.ResultVO
 * @description: 统一响应结果
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/04/08 23:16
 */
public class ResultVO {

    /**
     * 响应状态码
     */
    private Integer code;

    /**
     * 响应结果描述
     */
    private String msg;

    /**
     * 响应总数居
     */
    @JsonInclude(value = JsonInclude.Include.NON_EMPTY)
    private Long total;

    /**
     * 响应数据
     */
    @JsonInclude(value = JsonInclude.Include.NON_EMPTY)
    private Object data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
